---
import { Code } from "@astrojs/starlight/components";
const response = await fetch(
	"https://github.com/userdocs/qbt-workflow-files/releases/latest/download/dependency-version.json",
);

const data = await response.json();

const codeblock = `qBittorrent ${data.qbittorrent || "5.1.2"} was built with the following libraries:
Qt: ${data.qt6 || "6.9.1"}
Libtorrent: ${data.libtorrent_2_0 || "2.0.11"}
Boost: ${data.boost || "1.89.0"}
OpenSSL: ${data.openssl || "3.5.2"}
zlib: ${data.zlib || "1.3.1.1"}-motley`;

// {
//   "glibc_2_31": "2.31",
//   "glibc_2_38": "2.38",
//   "zlib": "1.3.1",
//   "iconv": "1.17",
//   "icu": "74-2",
//   "openssl": "3.2.1",
//   "boost": "1.84.0",
//   "libtorrent_1_2": "1.2.19",
//   "libtorrent_2_0": "2.0.10",
//   "double_conversion": "3.3.0",
//   "qt5": "5.15.13",
//   "qt6": "6.6.2",
//   "qbittorrent": "4.6.3"
// }
---

<Code code={codeblock} lang="plaintext" />
